<%--
  Created by IntelliJ IDEA.
  User: haocongshun
  Date: 2016/10/4
  Time: 16:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="inc/top.jsp"%>
<script src="${CONTEXTPATH}/admin/static/personalData/personalData.js"></script>

<h3 style="font-weight: bold;">个人资料</h3>
<div class="panel-body">
    <form role="form" name="adminInfo" id="adminInfo" class="form-horizontal" action="${CONTEXTPATH}/PersonalData/setAdminInfo.press" enctype="multipart/form-data" method="post">
        <h4>基本信息</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">用户名</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-user"></i>
									</span>
                    <input id="username" name="username" class="form-control1" type="text" placeholder="用户名" value="${sessionScope.admin.user_username}" readonly>
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block">不可更改</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">真实姓名</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-tags"></i>
									</span>
                    <input id="realname" name="realname" class="form-control1" type="text" placeholder="真实姓名" value="${sessionScope.admin.user_realname}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block">建议填写</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">昵称</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-tag"></i>
									</span>
                    <input id="nickname" name="nickname" class="form-control1" type="text" placeholder="昵称" value="${sessionScope.admin.user_nickname}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block">必填</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">生日</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-calendar"></i>
									</span>
                    <input id="birthday" name="birthday" class="form-control1" type="text" placeholder="生日  yyyy-mm-dd" value="${sessionScope.admin.user_birthday}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">职业</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-tasks"></i>
									</span>
                    <input id="profession" name="profession" class="form-control1" type="text" placeholder="职业" value="${sessionScope.admin.user_profession}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">籍贯</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-map-marker"></i>
									</span>
                    <input id="native_place" name="native_place" class="form-control1" type="text" placeholder="籍贯" value="${sessionScope.admin.user_native_place}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>


        <h4>联系信息</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">邮箱</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-envelope-o"></i>
									</span>
                    <input id="email" name="email" class="form-control1" type="text" placeholder="邮箱" value="${sessionScope.admin.user_email}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block">必填</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">电话</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-phone"></i>
									</span>
                    <input id="phone" name="phone" class="form-control1" type="text" placeholder="电话" value="${sessionScope.admin.user_phone}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">QQ</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-qq"></i>
									</span>
                    <input id="qq" name="qq" class="form-control1" type="text" placeholder="QQ" value="${sessionScope.admin.user_qq}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">微博</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-weibo"></i>
									</span>
                    <input id="weibo" name="weibo" class="form-control1" type="text" placeholder="微博" value="${sessionScope.admin.user_weibo}">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block"></p>
            </div>
        </div>
        <h4>简介信息</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">头像</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-file"></i>
									</span>
                    <input type="file" name="avatar" id="avatar">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block">建议填写</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">个人简介</label>
            <div class="col-sm-8"><textarea name="introduction" id="introduction" cols="200" rows="15" class="form-control1" style="height: 100px;resize: none" readonly >${sessionScope.admin.user_introduction}</textarea></div>
            <div class="col-sm-2">
                <p class="help-block"><a href="${CONTEXTPATH}/admin/personalData/introduction.jsp">点击此处编辑</a></p>
            </div>
        </div>
        <h4>密码</h4>
        <div class="form-group">
            <label class="col-md-2 control-label">密码</label>
            <div class="col-md-8">
                <div class="input-group input-icon right">
									<span class="input-group-addon">
										<i class="fa fa-key"></i>
									</span>
                    <input type="password" name="password" class="form-control1" placeholder="密码">
                </div>
            </div>
            <div class="col-sm-2">
                <p class="help-block" style="color: red;">请勿随意修改！</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label">&nbsp;</label>
            <div class="col-md-8">
                <button type="button" id="adminInfoSub" style="width: 100%" class="btn btn_5 btn-lg btn-primary">保存更改</button>
            </div>
        </div>
    </form>
</div>

<%@include file="inc/bottom.jsp"%>
